SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 44703: Errors opening database views in SAS® Enterprise Guide® or other SAS® client applications

DetailsAboutRate It

When opening a database view through the META Library Engine, SAS® Enterprise Guide® might issue the message:

SAS Enterprise Guide cannot open the data file: "library-name.dbview-name". Error opening data "dbview-name".

Similarly, accessing the view through the META Library Engine using SAS® programming steps or other SAS client applications might produce errors such as:

ERROR: File LIBREF.VIEW-NAME.DATA does not exist. ERROR: The metadata for the table/view LIBREF.DBVIEW-NAME does not exist.
or
ERROR: File LIBREF.db-view-name.VIEW cannot be opened because files of type VIEW are not supported in the LIBREF library.

The problem occurs when these conditions are true:

  • hot fix B04007 is installed
  • the view is a database view, such as with an Oracle or Teradata database
  • the view is registered using SAS® Management Console or SAS® Data Integration Studio
  • the view is accessed via the META Library Engine

There are several circumventions to this problem. Select the approach most suitable to your environment and business rules:

  1. Mark the library as pre-assigned in metadata. This will allocate the library at server-startup and will use the native database engine. Do this from within the SAS Management Console ► Data Library Manager ► Libraries.
    1. Right-mouse-click the library from the navigation view and select Properties.
    2. Select the Options tab and then the Advanced Options button.
    3. Check the Library is pre-assigned checkbox.
    4. Click OK to save the changes.
  2. Modify the Advanced properties for the table object in the SAS® Metadata Repository. Do this from within the SAS Management Console ► Data Library Manager ► Libraries.
    1. Select the library containing the database view.
    2. Right-mouse-click the view and select Properties, then the Advanced tab.
    3. Set IsDBMSView to 0 and set MemberType to DATA by over-typing the existing values and hitting Enter.
    4. Click OK to save the changes.
  3. Use PROC METALIB to register the view(s).


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASLinux for x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Linux9.21_M39.3_M29.2 TS2M39.3 TS1M2
HP-UX IPF9.21_M39.3_M29.2 TS2M39.3 TS1M2
64-bit Enabled Solaris9.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows Vista for x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows Vista9.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Ultimate x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Ultimate 32 bit9.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Professional x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Professional 32 bit9.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Home Premium x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Home Premium 32 bit9.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Enterprise x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Windows 7 Enterprise 32 bit9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows XP Professional9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2008 for x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 20089.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 for x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Standard Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
64-bit Enabled HP-UX9.21_M39.3_M29.2 TS2M39.3 TS1M2
64-bit Enabled AIX9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows Server 2003 Datacenter Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft® Windows® for x649.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft Windows XP 64-bit Edition9.21_M39.3_M29.2 TS2M39.3 TS1M2
Microsoft® Windows® for 64-Bit Itanium-based Systems9.21_M39.3_M29.2 TS2M39.3 TS1M2
z/OS9.21_M39.3_M29.2 TS2M39.3 TS1M2
OpenVMS on HP Integrity9.21_M39.3_M29.2 TS2M39.3 TS1M2
Solaris for x649.21_M39.3_M29.2 TS2M39.3 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.